import Https from "@/utils/Https";
import Https2 from "@/utils/Https2";

export const queryRegionDataReq = async (params) =>
  await Https2.get("/system/region/getRegion", params);
export const queryBusinessTypeReq = async (params) =>
  await Https2.post("/system/dict/data/byType", params);
export const queryCustomerReq = async (params) =>
  await Https2.post("/system/euseconfig/listCustomerServiceConfig", params);

export const addItemReq = async (params) => await Https.post("/tables", params);
export const updateItemReq = async (params) =>
  await Https.post("/tables", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/tables", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/tables", params);

export const toggleStateReq = async (params) =>
  await Https.post("/tables", params, true);

//注册
export const queryRegisterReq = async (params) =>
  await Https.post("/auth/tenant/register", params, true);
